<div class="span9">
	<div class="row">
		<!-- widget area, which ones? -->
		<div class="span3">
			<div class="row">
				<?php 
				foreach($widgets as $w) {
					print $w;
				}
			?>
			</div>
		</div>
		<div class="span6">
			<h4 class="title"><?= $article->headline;?></h4>
			<div class="box">
				<p><?= nl2br(getContent($article, true));?></p>
			</div>
		</div>
	</div>
</div>

<?php 
function getContent($article, $fulltext){
	$rmo = "[readmore]";
	$link = "<a href='/nyheter/$article->id'>&raquo; Läs mer</a>";
	
	if($fulltext) {
		return str_replace($rmo, '', $article->content);
	} else {
		$text = $article->content;
		if(strpos($text, $rmo) > 0){
			$text = substr($text, 0, strpos($text, $rmo) + strlen($rmo));
		}
		return str_replace($rmo, $link, $text);
	}
}
?>